//
//  main.swift
//  sunyimin
//
//  Created by 15180600702 sunyimin on 2017/9/20.
//  Copyright © 2017年 sunyimin. All rights reserved.
//
//import Foundation
//
//
//var Student:[Girlfriends]=[]
//
//func RandomName() -> String
//{
//    let cha = ["a","b","c","d","e","f","g","h","x","y","z"]
//    
//    var result:String=""
//    
//    var i=0
//    
//    while(i<5)
//    {
//        i = i + 1
//        let index:Int = Int(arc4random()) % 10 + 1
//        result.append(cha[index])
//    }
//    return result
//}
//
//func RandomAge()->Int
//{
//    return Int(arc4random()) % 11 + 15
//}
//for _ in 0...999{
//    
//    let Student=Girlfriends(age: RandomAge(), name: RandomName())
//    
//    Student.date()
//}


import Foundation
print("15180600702,孙一民")
var str = "sunyimin!zui@shuai"

print(str.split(splitStr: "y"))
print(str.split(splitStr: "m"))
print(str.split(splitStr: "!"))
print(str.split(splitStr: "@"))

